package com.example.check_oa.dubbo;

import com.example.check_oa.model.service.OvertimeApService;
import com.example.comment_oa.dubbo.OvDubbo;
import com.example.comment_oa.pojos.attendance.OvertimeAp;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

@DubboService(version = "1.0.0",protocol = "${dubbo.protocol.id}",
        application = "${dubbo.application.id}",registry = "${dubbo.registry.id}",
        timeout = 3000)
public class OvDubboImpl implements OvDubbo {
    @Resource
    OvertimeApService overtimeApService;

    @Override
    public int apOv(OvertimeAp overtimeAp, MultipartFile file) {
        return overtimeApService.add(overtimeAp, file);
    }

    @Override
    public int yesOv(Integer ovId, String yesUser) {
        return overtimeApService.yesOv(ovId,yesUser);
    }

    @Override
    public int noOv(Integer ovId, String yesUser) {
        return overtimeApService.noOv(ovId,yesUser);
    }
}
